package com.dooioo.pns.api.leancloud;

import java.io.Serializable;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * PackageName:com.dooioo.pns.entity.model
 * Author: Jerry.hu
 * Create: Jerry.hu (2015-07-27 下午7:38)
 * Description:
 * To change this template use File | Settings | File Templates.
 */
public class Push implements Serializable{
	private static final long serialVersionUID = 8268053350790391456L;
	private String deviceType;
	private String prod;
	private String[] channels;
	private Where where;
	private LData data;

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public String getProd() {
		return prod;
	}

	public void setProd(String prod) {
		this.prod = prod;
	}

	public Where getWhere() {
		return where;
	}

	public void setWhere(Where where) {
		this.where = where;
	}

	public LData getData() {
		return data;
	}

	public void setData(LData data) {
		this.data = data;
	}

	public String[] getChannels() {
		return channels;
	}

	public void setChannels(String[] channels) {
		this.channels = channels;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("Push{");
		sb.append("deviceType='").append(deviceType).append('\'');
		sb.append(", prod='").append(prod).append('\'');
		sb.append(", channels=").append(channels == null ? "null" : Arrays.asList(channels).toString());
		sb.append(", where=").append(where);
		sb.append(", data=").append(data);
		sb.append('}');
		return sb.toString();
	}
}
